export class Dep {
    constructor() {
        this.watchers = [];
    }
    pushDep(watcher) {
        this.watchers.push(watcher);
    }
    notify() {
        this.watchers.forEach(sub => {
            sub.update();
        });
    }
}
Dep.target = null;
